// 引入axios（axios进行了二次封装）
import request from '@/utils/request'

// 获取分类列表
export function getCategoryList(){
  return request({
    url:'/category/list',
    method:'get',
  })
}

//获取分类下的文章列表
export function getCategoryArticleList(categoryId){
  return request({
    url:'/category/article/list',
    method:'get',
    params: {
      categoryId:categoryId,
    }
  })
}